package com.lwei.tallybook.base.domain.rel;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lwei.tallybook.base.domain.base.BaseDomain;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 账单与用户关系表
 * @author sks.lwei
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("rel_bill_account")
public class RelBillAccount extends BaseDomain<RelBillAccount> {

    /**
     * account——uuid
     */
    @TableField("account_uuid")
    private String accountUuid;
    /**
     * 对应金额
     */
    private Double price;
    /**
     * 账单管理uuid
     */
    @TableField("bill_uuid")
    private String billUuid;

    public RelBillAccount(String accountUuid, Double price, String billUuid) {
        this.accountUuid = accountUuid;
        this.price = price;
        this.billUuid = billUuid;
    }
}
